<!--#include virtual="/dzps/p1.asp"-->
<%
	s1 "select equipmentId,questionDescription,[declare],declareTele,[status],typ,repairerId,fxpwd,ans,title1 from log1 where [ID]={id:int}"
%>
<!DOCTYPE html>
<html>
<head>
<%easp.include "h.asp"%>
<style type="text/css">
html {
    background-color: #fff;
}
#btn_fxpwd {
	margin-left: 115px;
	margin-bottom: 15px;
}
#questionDescription{
	height:500px;
}
</style>
</head>
<body>
  <div class="layui-form">
<%
	dim xcode
	i_h "id",val("id")

    echo "<br>"
	Echo input1("title1","标题","1")
	if val("id")<>"" then
		btn0_xs "btn_fxpwd","题目描述..."
	end if		
	select case val("status")
		case "898" xcode="C代码"
		case "899" xcode="JavaScript"
		case else  xcode="代码"
	end select

 	txtarea1 "fxpwd","题目描述",""
 	txtarea1 "questionDescription",xcode,"1"
	txtarea1 "ans","答案",""
	if val("declare")="" then
		vas "declare",session("username")
	end if
	echo js2("input1.html","declare","提交人",val("declare"),"")
	if session("mobile")<>"" then
		vas "declareTele",session("mobile")
	end if
	echo js2("input1.html","declareTele","联系电话",val("declareTele"),"")
	dim sql
	sql="select id,name1 from baseinfo where mode='工单类型'"
	echo myopt("typ","题目类型",sql2arr(sql),iif(val("typ") = "",973,val("typ")))
%>
    <div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="确认">
    </div>
  </div>
  <script src="/<%=rootpath%>/src/layuiadmin/layui/layui.js"></script>  
  <script>
  layui.config({
    base: '/<%=rootpath%>/src/layuiadmin/' 
  }).extend({
    index: 'lib/index' 
  }).use(['index', 'set','form', 'upload','user'],function(){
    var $ = layui.$
    ,setter = layui.setter
    ,admin = layui.admin
    ,form = layui.form;  
  	$('#fxpwd').focus();
	$("#btn_fxpwd").click(function(){
	layer.open({
		type: 2,skin: 'layui-layer-molv' ,title: '题目描述',
		content: '/kindeditor/asp/ke.asp?now=' + new Date().getTime() +"&log1_id="+$("#id").val(),maxmin: true
        ,area: ['650px', '495px']
		,success: function(layero, index){
			layer.full(index);
  		}
      });
	  return false;
	});
  });
  </script>  
</body>
</html>